"""
URL configuration for Ferpa project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from FerpaApp import views

urlpatterns = [
    path("admin/", admin.site.urls),
    # 展示页面函数
    path("", views.FastUrl, name='Urls'),
    path("test", views.Test),
    path("index", views.IndexInfo, name="index"),
    path("index/sevice", views.ServiceInfo, name="service"),
    path("index/information", views.LodeInformation, name="InformationBox"),
    path("index/login", views.LoginInfo, name="login"),
    path("index/logout", views.LogoutInfo, name='logout'),
    path("chatBot", views.ChatInfo, name='chatbot'),
    path("index/createPdf/<str:name>", views.CreatePdf, name="pdf"),

    # 工作空间页面函数
    path("workSpace/index", views.TurnToWorkSpace, name="work-index"),
    path("workSpace/faq", views.WorkSpaceFAQ, name="work-faq"),
    path("workSpace/contact", views.WorkSpaceContact, name="work-contact"),
    path("workSpace/register", views.WorkSpaceRegister, name="work-register"),
    path("workSpace/normalPHQ-9", views.WorkNormalPHQ9Test, name="work-normalPHQ-9"),
    path("workSpace/showData", views.WorkShowData, name="work-showData"),
    path("workSpace/llmChat", views.WorkLLM, name="work-normalchat"),

    # PHQ-9测试页面函数
    path("workSpace/LLM-PHQ-9", views.WorkLLM_PHQ9, name="work-llmPHQ-9"),



    #中转站点
    path("ProvinceSelect", views.selectProvince, name="selectProvince"),
    path("Download/<str:file_name>", views.Download_Path, name="download-film"),

]
